import 'dart:async';

import 'package:flutter_test/flutter_test.dart';
import 'package:hc_bot_kit/hc_bot_kit.dart';
import 'package:hc_bot_kit/hc_bot_kit_platform_interface.dart';
import 'package:hc_bot_kit/hc_bot_kit_method_channel.dart';
import 'package:hc_bot_kit/state.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockHcBotKitPlatform
    with MockPlatformInterfaceMixin
    implements HcBotKitPlatform {
     
      @override
      Future close() {
    // TODO: implement close
    throw UnimplementedError();
      }
    
      @override
      Future connect(String ipAddress) {
    // TODO: implement connect
    throw UnimplementedError();
      }
    
      @override
      Future<List<String>> fetchAllPoints() {
    // TODO: implement fetchAllPoints
    throw UnimplementedError();
      }
    
      @override
      Future<bool> guide(String destination) {
    // TODO: implement guide
    throw UnimplementedError();
      }

  @override
  StreamController<GuideState>? controller;

}

void main() {
  final HcBotKitPlatform initialPlatform = HcBotKitPlatform.instance;

  test('$MethodChannelHcBotKit is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelHcBotKit>());
  });

  test('getPlatformVersion', () async {
    HcBotKit hcBotKitPlugin = HcBotKit();
    MockHcBotKitPlatform fakePlatform = MockHcBotKitPlatform();
    HcBotKitPlatform.instance = fakePlatform;

    //expect(await hcBotKitPlugin.getPlatformVersion(), '42');
  });
}
